<!DOCTYPE html>
<html lang="en" class="">
<head>
  <meta charset="utf-8" />
  <title>BOHOR</title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <link rel="stylesheet" href="../libs/assets/animate.css/animate.css" type="text/css" />
  <link rel="stylesheet" href="../libs/assets/font-awesome/css/font-awesome.min.css" type="text/css" />
  <link rel="stylesheet" href="../libs/assets/simple-line-icons/css/simple-line-icons.css" type="text/css" />
  <link rel="stylesheet" href="../libs/jquery/bootstrap/dist/css/bootstrap.css" type="text/css" />

  <link rel="stylesheet" href="css/font.css" type="text/css" />
  <link rel="stylesheet" href="css/app.css" type="text/css" />
  <link rel="stylesheet" type="text/css" href="css/admin-ui.css"/>
</head>
<body>
<div class="app app-header-fixed " style="padding-top: 0;">


<div class="container w-xxl w-auto-xs" >
  <!--<a class="login-logo"><img src="./img/logo.png" /></a>-->
  <div class="m-b-lg">
    <div class="wrapper text-center">
      <strong class="login-text"><img src="./img/logo11-mm.png"/></strong>
    </div>
    <form id="form" class="form-validation">
      <div class="text-danger wrapper text-center auth-error" ng-show="authError">

      </div>
      <div class="list-group list-group-sm login-size">
        <div class="list-group-item">
          <input name="username" placeholder="用户名" class="form-control no-border" required>
        </div>
        <div class="list-group-item">
           <input type="password" name="password" placeholder="密码" class="form-control no-border"  required>
        </div>
      </div>
      <button type="submit" class="btn btn-lg btn-primary btn-block btn-logins">登录</button>
    </form>
  </div>
   <div class="text-center">
	   <p>
	  	  <small class="text-muted smalls">后台管理系统<br>&copy; 2018</small>
	   </p>
   </div>
</div>
<script src="../libs/jquery/jquery/dist/jquery.js"></script>
<script src="js/config.js"></script>
<script>
$(function () {

  $("#form [type=submit]").click(function () {
    $(".auth-error").html('');

    // $.post($.config('apiUrl') + "admin/login", {
    //   name: $("#form [name=username]").val(), 
    //   password: $("#form [name=password]").val()
    // }).then(function (resp) {
    //   if (resp.error) {
    //     $(".auth-error").html(resp.error);
    //   } else {
    //     location.href = "index.html";
    //   }
    // }).fail(function (resp) {
    //   $(".auth-error").html(resp.responseJSON.message);
    // });
     location.href = "index.html";
    return false;
  })
});
</script>
</body>
</html>
